DailyEvaluationEntry

@Serializable
data class DailyEvaluationEntry(val selectedEmotions: List<String> = listOf(), val emotionIntensities: List<Float> = listOf(0f, 0f, 0f), val emotionsMap: Map<String, Float> = mapOf(), val stressLevel: String = "default_initial", val strongestEmotion: Pair<String, Float> = Pair("", 0f), val dateCompleted: Date? = null)

Represents a daily mood evaluation entry that is used in the application. This includes the selected emotions, their intensities, a map of emotions to their values, the stress level, the strongest emotion (as a pair), and the date the entry was completed.

Constructors

Link copied to clipboard
constructor(selectedEmotions: List<String> = listOf(), emotionIntensities: List<Float> = listOf(0f, 0f, 0f), emotionsMap: Map<String, Float> = mapOf(), stressLevel: String = "default_initial", strongestEmotion: Pair<String, Float> = Pair("", 0f), dateCompleted: Date? = null)

Properties

Link copied to clipboard
@Serializable(with = DateSerializer::class)
val dateCompleted: Date? = null

The date when the mood evaluation was completed.

Link copied to clipboard

The intensities of the selected emotions.

Link copied to clipboard

A map containing the emotions and their respective intensities.

Link copied to clipboard

The list of emotions selected by the user.

Link copied to clipboard

The user's reported stress level.

Link copied to clipboard

The strongest emotion and its intensity as a pair.

Functions

Link copied to clipboard

Converts a DailyEvaluationEntry to a DailyEvaluationEntryDBSafe object for safe storage in Firestore.